import request from '@/utils/request'

const {
    get: $get,
    post: $post,
    delete: $delete,
    download: $download
} = request

// 查询报警预警处置时限配置全部
export const alarmDealConfigList = data => {
    return $get('/alarm/alarmDealConfig/list', data)
}

// 查询报警预警处置时限配置列表
export const alarmDealConfigPage = data => {
    return $get('/alarm/alarmDealConfig/page', data)
}

// 新增报警预警处置时限配置
export const alarmDealConfigAdd = data => {
    return $post('/alarm/alarmDealConfig/add', data)
}

// 查询报警预警处置时限配置详情
export const alarmDealConfigDetail = id => {
    return $get('/alarm/alarmDealConfig/detail/'+ id)
}

// 更新报警预警处置时限配置
export const alarmDealConfigUpdate = data => {
    return $post('/alarm/alarmDealConfig/update', data)
}

// 删除报警预警处置时限配置
export const alarmDealConfigDelete = id => {
    return $post('/alarm/alarmDealConfig/delete/'+ id)
}

// 导出报警预警处置时限配置
export const alarmDealConfigExport = (data,fileName) => {
    return $download('/alarm/alarmDealConfig/export',data, fileName)
}
